package chd.edu.spzx.order.mapper;

import chd.edu.spzx.model.entity.order.OrderItem;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author Zhang Chaoliang
 * create 2023
 */
@Mapper
public interface OrderItemMapper {

    /**
     * 添加数据到order_item表
     * @param orderItem
     */
    void save(OrderItem orderItem);

    /**
     * 根据订单id查询订单项
     * @param orderId
     * @return
     */
    List<OrderItem> findByOrderId(Long orderId);

}
